@import '/variable.less';
.custom-navbar {
  background-color: #fff;
  border-radius: 0 0 16rpx 16rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
  margin-bottom: 16rpx;
  overflow: hidden;
}

.nav-top {
  display: flex;
  align-items: center;
  // justify-content: space-between;
  padding: 39px 2rpx 28rpx 2rpx;
}

.delivery-toggle {
  display: flex;
  align-items: center;
  background: #f0f0f0;
  border-radius: 40rpx;
  padding: 8rpx;
  position: relative;
}

.toggle-button {
  padding: 12rpx 36rpx;
  border-radius: 32rpx;
  font-size: 28rpx;
  font-weight: 500;
  z-index: 2;
  transition: all 0.3s ease;
}

.toggle-button.active {
  color: #fff;
}

.toggle-bg {
  position: absolute;
  width: 50%;
  height: calc(100% - 8rpx);
  background-color: #0052d9;
  border-radius: 32rpx;
  z-index: 1;
  transition: all 0.3s ease;
}

.toggle-bg.takeaway {
  transform: translateX(100%);
}

.store-selector {
  display: flex;
  align-items: center;
  font-size: 32rpx;
  font-weight: 500;
  color: #333;
  padding: 16rpx 24rpx;
  border-radius: 12rpx;
}

.store-selector .icon {
  margin-left: 12rpx;
  font-size: 24rpx;
  color: #999;
}

.address-section {
  padding: 0 40rpx;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  background: linear-gradient(to bottom, #f9f9f9, #fff);
}

.address-section.expanded {
  max-height: 300rpx;
  padding: 4rpx 40rpx 4rpx 40rpx;
}

.user-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20rpx;
}

.user-contact {
  display: flex;
  align-items: center;
}

.user-name {
  font-weight: 600;
  font-size: 32rpx;
  margin-right: 24rpx;
  color: #333;
}

.user-phone {
  color: #666;
  font-size: 30rpx;
  display: flex;
  align-items: center;
}

.fold-icon {
  margin-left: 16rpx;
  font-size: 28rpx;
  color: #999;
  transition: transform 0.3s ease;
}

.fold-icon.expanded {
  transform: rotate(180deg);
}

.change-address {
  color: #0052d9;
  font-size: 26rpx;
  display: flex;
  align-items: center;
  padding: 12rpx 20rpx;
  border-radius: 8rpx;
  background-color: rgba(0, 82, 217, 0.08);
}

.change-address .icon {
  margin-left: 8rpx;
  font-size: 28rpx;
}

.user-address {
  font-size: 28rpx;
  color: #333;
  line-height: 1.5;
  padding: 24rpx;
  background-color: #fff;
  border-radius: 16rpx;
  border: 1rpx solid #eee;
  position: relative;
  padding-left: 76rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.03);
  margin-top: 16rpx;
}

.user-address:before {
  content: "📍";
  position: absolute;
  left: 24rpx;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32rpx;
}

.divider {
  height: 2rpx;
  background: linear-gradient(to right, transparent 10%, #eee 50%, transparent 90%);
  margin: 0 40rpx;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.divider.visible {
  opacity: 1;
}